	<g:form url="[action:'saveContentVersion']" method="post" >
	


	<table>
					<tr><td>Id</td>
		<td> <input type="text" id="id" name="id" value="${fieldValue(bean:contentVersionHolder,field:'id')}"/>
		</td>
		</tr>
		
		<tr><td>Name</td>
		    <td>  <input type="text" id="name" name="name" value="${fieldValue(bean:contentVersionHolder,field:'name')}"/>
		      
	
		</td>
		</tr>

		<tr><td>description</td>
		<td> <input type="text" id="name" name="name" value="${fieldValue(bean:contentVersionHolder,field:'description')}"/>
		</td>
		</tr>
		

		
				<tr><td>contentId</td>
		<td> <input type="text" id="name" name="name" value="${fieldValue(bean:contentVersionHolder,field:'contentId')}"/>
		</td>
		</tr>
		

<tr>
<td>

		
		
			<input value="save content version" type="submit" />
			</td>
			</tr>
		</g:form>
		
		
		


                    <g:each in="${contentVersionHolder?.attributeValueHolders}" status="i" var="attributeValueHolder">

                       
              	  <g:each in="${attributeValueHolder.attributeValueHolder}"  var="avh">

                   		<tr><td>
                   		${avh.name}</td>
 
   
                   		<td>
                   		<g:link action="removeAttributeValue"  params="[id:avh.id,contentVersionId:contentVersionHolder.id]">remove</g:link>
                   		</td>
                   		

                   				
                   		</tr>    
                  
       
                   		
                   		
                   	
                   		
                   		
                   		
                   		  </g:each>
                   		
                   		     
          
                    </g:each>
                    		
                    	</table>	
                    	
                    			
		
	        
                    
                    		